{include file='common/head'}
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a >首页</a>
        <a >演示</a>
        <a>
          <cite>流水</cite>
        </a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="{:url('admin/user/balancelogindex')}" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <div class="layui-input-inline">
                <select name="type">
                    <option value="">流水类型</option>
                    <option value="1">信用额度</option>
                    <option value="2">佣金</option>
                    <option value="3">信用分</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="fromtype">
                    <option value="">原因</option>
                    <option value="1">匹配成功</option>
                    <option value="2">完成订单</option>
                    <option value="3">提现</option>
                    <option value="4">订单超时</option>
                </select>
            </div>
            <span>发布时间</span><input class="layui-input" placeholder="开始日" name="datemin" id="start">至
            <input class="layui-input" placeholder="截止日" name="datemax" id="end">
            <input type="submit" name="sub" class="layui-btn" value="开始搜索" lay-submit="" lay-filter="sreach">
        </form>
    </div>
    <table class="layui-table">
        <thead>
        <tr style="text-align: center">
            <th>序号NO</th>
            <th>会员昵称</th>
            <th>类型</th>
            <th>数量</th>
            <th >原因</th>
            <th>订单前</th>
            <th>订单后</th>
            <th>备注</th>
            <th>时间</th>
        </tr>
        </thead>
        <tbody>
        {volist name="rs" id="b" key='key' }
        <tr style="text-align: center">
            <td>{$b.id}</td>
            <td>{$b.u_name}</td>
            <td>{if $b.type ==1}信用额度{elseif $b.type==2}佣金{elseif $b.type==3}信用分{/if}</td>
            <td>{$b.num}</td>
            <td>{if $b.from_type == 1}匹配成功{elseif $b.from_type==2}完成订单{elseif $b.from_type==3}提现{elseif $b.from_type==4}订单超时{/if}</td>
            <td>{$b.before_num}</td>
            <td>{$b.after_num}</td>
            <td>{$b.memo}</td>
            <td>{$b.createtime}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page">
        <div>
            {$page}
        </div>
    </div>

</div>
<script>
</script>

</body>

</html>